package indi.kider.server.employee.mapper;

import indi.kider.common.model.employee.Employee;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface EmployeeMapper extends Mapper<Employee> {
    List<Employee>getUsersToLogin(String loginName);
    List<Employee>getUsersByLoginNameWithLike(String loginName);

    List<Employee>getEmployeeList(Employee employee);
    List<Employee>getHzEmployees(Employee employee);

    void deleteByEnterpriseId(long enterpriseId);

    Employee getEmployeeInfoForLogin(Employee employee);

    List<Employee>getUsersByHouseId(Long houseId);

    List<Employee> getEmployeePartByHouseId(Long houseId);
}